package com.example.activitidemo.dao;

import com.example.activitidemo.dto.Event;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface EventRepository extends JpaRepository<Event, String>, JpaSpecificationExecutor<Event> {

    List<Event> findByIdIn(List<String> ids);

    List<Event> findByProcessInstanceIdIn(List<String> processInstanceIds);

    List<Event> findByOrderByDateDesc();

}
